Package-level declarations

Types

Link copied to clipboard
internal class AgentContext(remoteAddr: String)

Represents a single connected agent on the proxy side.

Link copied to clipboard
internal class AgentContextCleanupService(proxy: Proxy, configVals: ConfigVals.Proxy2.Internal2, initBlock: AgentContextCleanupService.() -> Unit = {}) : GenericExecutionThreadService

Background service that periodically evicts stale agent contexts.

Link copied to clipboard
internal class AgentContextManager(isTestMode: Boolean)

Registry for connected agents and in-flight chunked scrape contexts.

Link copied to clipboard
internal class ChunkedContext(response: ChunkedScrapeResponse, maxZippedContentSize: Long)

Accumulates chunked scrape response data with CRC32 integrity validation.

Link copied to clipboard
internal class ChunkValidationException(message: String) : Exception
Link copied to clipboard
Link copied to clipboard
internal class ProxyGrpcService(proxy: Proxy, port: Int = -1, inProcessName: String = "") : GenericIdleService

Manages the gRPC server lifecycle for the proxy.

Link copied to clipboard
internal object ProxyHttpConfig
Link copied to clipboard

HTTP routing logic for the proxy's Ktor server.

Link copied to clipboard
internal class ProxyHttpService(proxy: Proxy, val httpPort: Int, isTestMode: Boolean) : GenericIdleService

HTTP server that serves Prometheus scrape requests.

Link copied to clipboard
internal class ProxyMetrics(proxy: Proxy)
Link copied to clipboard
Link copied to clipboard
internal class ProxyPathManager(proxy: Proxy, isTestMode: Boolean)

Maps scrape URL paths to their registered AgentContext instances.

Link copied to clipboard
internal class ProxyServerInterceptor : ServerInterceptor
Link copied to clipboard
internal class ProxyServerTransportFilter(proxy: Proxy) : ServerTransportFilter
Link copied to clipboard
internal class ProxyServiceImpl(proxy: Proxy) : ProxyServiceGrpcKt.ProxyServiceCoroutineImplBase

Server-side implementation of the ProxyService gRPC service.

Link copied to clipboard
object ProxyUtils
Link copied to clipboard
data class ResponseResults(val statusCode: HttpStatusCode = HttpStatusCode.OK, val contentType: ContentType = Text.Plain.withCharset(Charsets.UTF_8), val contentText: String = "", val updateMsgs: List<String> = emptyList())
Link copied to clipboard
internal class ScrapeRequestManager

Tracks in-flight scrape requests and assigns results when responses arrive.

Link copied to clipboard
data class ScrapeRequestResponse(val statusCode: HttpStatusCode, val updateMsg: String, val contentType: ContentType = Text.Plain.withCharset(Charsets.UTF_8), val contentText: String = "", val failureReason: String = "", val url: String = "", val fetchDuration: Duration)
Link copied to clipboard
internal class ScrapeRequestWrapper(val agentContext: AgentContext, proxy: Proxy, pathVal: String, encodedQueryParamsVal: String, authHeaderVal: String, acceptVal: String?, debugEnabledVal: Boolean)